/**
 * 
 */
package pt.mleiria.bean;

import java.security.NoSuchAlgorithmException;

import javax.ejb.Local;

import pt.mleiria.entity.IssuerMasterKey;

/**
 * @author NB13712
 *
 */
@Local
public interface IClientBean {
	/**
	 * 
	 * @param name
	 * @return
	 */
	String insertMasterKey(String name) throws NoSuchAlgorithmException ;
	/**
	 * 
	 * @param name
	 * @param key_id
	 * @return
	 */
	byte[] getKey(final String name, final int key_id);
	/**
	 * 
	 * @param name
	 * @return
	 */
	IssuerMasterKey findIssuerMasterKey(String name);
	/**
	 * 
	 * @param id
	 * @return
	 */
	IssuerMasterKey findIssuerMasterKey(int id);
	
}
